package com.cn.qtms.common.constant;

/***
*@Name jwt通用常量类
*@Param
*@Return
*@Author zhangyang
*@Date 2019/9/26
*/

public class JwtSecurityConstants {
    /**
     * 附带token信息
     */
    public final static String OPEN_ID = "openid";
    public final static String USERNAME = "username";
    /**
     * 是否完善资料
     */
    public final static String STEP="step";
    /**
     * client 权限
     */
    public final static String AUTHORIZATION_CODE = "authorization_code";
    public final static String PASSWORD = "password";
    public final static String IMPLICIT = "implicit";
    public final static String REFRESH_TOKEN = "refresh_token";
    /**
     * client scope
     */
    public final static String READ = "read";
    public final static String WRITE = "write";
    public final static String TRUST = "trust";
    /**
     * token有效期，默认24小时
     */
    public static final int ACCESS_TOKEN_VALIDITY_SECONDS = 60 * 60 * 24;
    /**
     * token有效期，默认7天
     */
    public static final int REFRESH_TOKEN_VALIDITY_SECONDS = 60 * 60 * 24 * 7;
    /**
     * token类型
     */
    public static final String BEARER_TOKEN_TYPE = "Bearer ";
    /**
     * vue react 登陆 getCookie()的cookie名
     */
    public static final String WEB_TOKEN="INTERESTSACME_TOKEN";
}
